package com.runshu.newsmartark.dbutil;

import androidx.room.Entity;
import androidx.room.PrimaryKey;
import androidx.room.TypeConverters;

import java.util.ArrayList;
import java.util.List;

/**
 * Demo class
 *
 * @author yu
 * @date 2021/12/10
 * @decs：
 */
@Entity(tableName = "LogListEntity")
public class LogListEntity {

    @PrimaryKey(autoGenerate = true)
    long id;
    //yyyy-MM-dd hh:mm:ss
    String createTime;
    //流水号

    @TypeConverters(Converters.class)
    ArrayList<String> rfid;

    String userCode ;

    public String getUserCode() {
        return userCode == null ? "" : userCode;
    }

    public void setUserCode(String userCode) {
        this.userCode = userCode == null ? "" : userCode;
    }

    public String getCreateTime() {
        return createTime == null ? "" : createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime == null ? "" : createTime;
    }

    public List<String> getRfid() {
        if (rfid == null) {
            return new ArrayList<>();
        }
        return rfid;
    }

    public void setRfid(ArrayList<String> rfid) {
        this.rfid = rfid;
    }
}